<script setup type="module">
    import { defineProps, ref } from 'vue'
    import Navigator from './Navigator.vue';

    let message = ref('')

    function fun(msg){
        message.value = msg
    }
</script>

<template>
    <div>
        子组件传来的内容 ：{{ message }}
        <hr />
        <Navigator @message="fun"></Navigator>
        <Navigator v-on:message="fun"></Navigator>
    </div>
</template>

<style scoped>

</style>